import request from '@/utils/request'

// 查询配套施工列表
export function listMatching(query) {
  return request({
    url: '/project/matching/list',
    method: 'get',
    params: query
  })
}

// 查询配套施工列表
export function getMatchingTotal(query) {
  return request({
    url: '/project/matching/getMatchingTotal',
    method: 'get',
    params: query
  })
}

// 查询配套施工详细
export function getMatching(id) {
  return request({
    url: '/project/matching/' + id,
    method: 'get'
  })
}

// 新增配套施工
export function addMatching(data) {
  return request({
    url: '/project/matching',
    method: 'post',
    data: data
  })
}

// 修改配套施工
export function updateMatching(data) {
  return request({
    url: '/project/matching',
    method: 'put',
    data: data
  })
}

// 删除配套施工
export function delMatching(id) {
  return request({
    url: '/project/matching/' + id,
    method: 'delete'
  })
}
